package com.motong.gongdan.vo.resp;

import com.motong.gongdan.vo.system.otherVo.CustomFieldVo;
import com.motong.gongdan.vo.system.otherVo.RelatedSalesInfoVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author:fff
 * @time:2022/2/28
 */
@Data
public class WorkOrderResp {

    @ApiModelProperty("工单id")
    private Integer id;

    @ApiModelProperty("工单编码")
    private String code;

    @ApiModelProperty("产品编码")
    private String productCode;

    @ApiModelProperty("产品名称")
    private String productName;

    @ApiModelProperty("产品规格")
    private String productSpecification;

    private String unit;

    @ApiModelProperty("工单状态")
    private Integer state;

    @ApiModelProperty("工单状态名称")
    private String stateName;

    private Date startTime;
    private Date endTime;

    @ApiModelProperty("计划数")
    private BigDecimal planedNumber;

    @ApiModelProperty("实际数量")
    private BigDecimal actualNumber;

    private BigDecimal goodProductNumber;
    private BigDecimal badProductNumber;
    private String reportedHours;
    private String processId;
    private Integer createId;
    private Integer editId;
    private Date actualStartTime;
    private Date actualEndTime;
    private Date createTime;
    private String comment;
    private String clientName;

    private String createName;
    private String editName;

    @ApiModelProperty("生产进度")
    private List<WOProcessListResp> list;

    private Integer isDelay;

    private String other;

    @ApiModelProperty("是否加急（0不加急  1加急）")
    private Integer isUrgent;

    @ApiModelProperty("二维码")
    private String qr;

    @ApiModelProperty("销售单相关信息")
    private RelatedSalesInfoVo relatedSalesInfoVo;


    private List<WorkOrderStateNum> num;
    private List<CustomFieldVo> customFieldVos;

}
